import request from "@/utils/request";

// 查询筛选客户条件列表
export function listBizCustomerFilter(query) {
  return request({
    url: "/biz/bizCustomerFilter/list",
    method: "get",
    params: query,
  });
}

// 查询筛选客户条件详细
export function getBizCustomerFilter(id) {
  return request({
    url: "/biz/bizCustomerFilter/" + id,
    method: "get",
  });
}

// 新增筛选客户条件
export function addBizCustomerFilter(data) {
  return request({
    url: "/biz/bizCustomerFilter",
    method: "post",
    data: data,
  });
}

// 修改筛选客户条件
export function updateBizCustomerFilter(data) {
  return request({
    url: "/biz/bizCustomerFilter",
    method: "put",
    data: data,
  });
}

// 删除筛选客户条件
export function delBizCustomerFilter(id) {
  return request({
    url: "/biz/bizCustomerFilter/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizCustomerFilter/findMaxSort",
    method: "get",
  });
}
// 导出筛选客户条件
export function exportBizCustomerFilter(query) {
  return request({
    url: "/biz/bizCustomerFilter/export",
    method: "get",
    params: query,
  });
}
